﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ControlCal.ascx.vb" Inherits="ControlCal" %>
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
  <input type="button" value="..." onclick="OnClick()"/>
<div id="divCalendar" style="DISPLAY: none; POSITION: absolute">
  <asp:Calendar id="Calendar1" runat="server"
                BackColor="White" Width="252px"
    ForeColor="#003399" Height="130px" Font-Size="8pt"
                      Font-Names="Verdana" BorderColor="#3366CC" DayNameFormat="FirstLetter" CellPadding="1" BorderStyle="None" Font-Overline="False" Font-Strikeout="False">
    <TodayDayStyle ForeColor="White" BackColor="#99CCCC">
      </TodayDayStyle>
    <SelectorStyle BackColor="#99CCCC" ForeColor="#336666"></SelectorStyle>
    <NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF"></NextPrevStyle>
    <DayHeaderStyle
                    BackColor="#99CCCC" ForeColor="#336666" Height="1px"></DayHeaderStyle>
    <SelectedDayStyle Font-Bold="True" ForeColor="#CCFF99"
                      BackColor="#009999"></SelectedDayStyle>
    <TitleStyle Font-Bold="True" BorderColor="#3366CC"
                BackColor="#003399" BorderWidth="1px" Font-Size="8pt" ForeColor="#CCCCFF" Height="25px" Font-Italic="False"></TitleStyle>
    <WeekendDayStyle BackColor="#CCCCFF"></WeekendDayStyle>
    <OtherMonthDayStyle ForeColor="#999999"></OtherMonthDayStyle>
  </asp:Calendar>
</div>
	<script type="text/javascript">
function OnClick()
{
  if( divCalendar.style.display == "none")
    divCalendar.style.display = "";
  else
    divCalendar.style.display = "none";
}
</script>